<?php
/* --------------------------------------------------------------
   gm_gprint_checkout_confirmation.php 2011-11-15 mb
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2011 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
?><?php 

// delete empty attributes (random id)
$data_products = preg_replace('!(<td align="left" valign="top">\s*<nobr>&nbsp; - :\s*<nobr></td>\s*<td align="right" valign="top">&nbsp;</td></tr>)!is', "", $data_products);

$coo_gprint_content_manager = new GMGPrintContentManager();
		
$t_gm_gprint_data = $coo_gprint_content_manager->get_content($order->products[$i]['id'], 'cart');

for($j = 0; $j < count($t_gm_gprint_data); $j++)
{
	$data_products .= '<tr>
							<td align="left" valign="top">
								<nobr>&nbsp; - ' . $t_gm_gprint_data[$j]['NAME'] . ': ' . $t_gm_gprint_data[$j]['VALUE'] . '</nobr>
							</td>
							<td align="right" valign="top">&nbsp;</td>
						</tr>';
	$t_products_attributes[] = array('option' => $t_gm_gprint_data[$j]['NAME'],
									'value' => $t_gm_gprint_data[$j]['VALUE']);
}

?>